// -----------------------------------------------------------------------
// <copyright file="DeclarativeSecurity.aspx.cs" company="Imar.Spaanjaars.Com">
//   Copyright 2008 - 2009 - Imar.Spaanjaars.Com. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------

using System;
using Spaanjaars.ContactManager.Bll;
using Spaanjaars.ContactManager.BusinessEntities;

public partial class Demos_DeclarativeSecurity : System.Web.UI.Page
{
	protected void Page_Load(object sender, EventArgs e)
	{
		// Create new ContactPerson and try to delete it. Should fail when you're
		// not logged in as an administrator.
		ContactPerson myContactPerson = new ContactPerson();
		ContactPersonManager.Delete(myContactPerson);
	}
}
